package com.linkage.lcims.base.po.system;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="M_LOGOPCODE"
 *     
*/
@SuppressWarnings("serial")
public class MLogopcode implements Serializable {

    /** identifier field */
    private Integer operatetype;

    /** nullable persistent field */
    private String operatename;

    /** nullable persistent field */
    private String note;

    /** full constructor */
    public MLogopcode(Integer operatetype, String operatename, String note) {
        this.operatetype = operatetype;
        this.operatename = operatename;
        this.note = note;
    }

    /** default constructor */
    public MLogopcode() {
    }

    /** minimal constructor */
    public MLogopcode(Integer operatetype) {
        this.operatetype = operatetype;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.Integer"
     *             column="operatetype"
     *         
     */
    public Integer getOperatetype() {
        return this.operatetype;
    }

    public void setOperatetype(Integer operatetype) {
        this.operatetype = operatetype;
    }

    /** 
     *            @hibernate.property
     *             column="operatename"
     *             length="40"
     *         
     */
    public String getOperatename() {
        return this.operatename;
    }

    public void setOperatename(String operatename) {
        this.operatename = operatename;
    }

    /** 
     *            @hibernate.property
     *             column="note"
     *             length="255"
     *         
     */
    public String getNote() {
        return this.note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("operatetype", getOperatetype())
            .toString();
    }

    public boolean equals(Object other) {
        if ( (this == other ) ) return true;
        if ( !(other instanceof MLogopcode) ) return false;
        MLogopcode castOther = (MLogopcode) other;
        return new EqualsBuilder()
            .append(this.getOperatetype(), castOther.getOperatetype())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getOperatetype())
            .toHashCode();
    }

}
